package server;

import java.net.*;
import java.io.*;
import java.util.*;

   /* Allow to kick "someone" by typing "/kick someone".
    Assume that 'Student1' types "/kick Student2". 
    Actually, the server broadcasts "/kick Student2" first, 
    marks "kicked" in the thread of 'Student2',
    and then the client 'Student2' leaves by sending "/leave". 
    Note: do not need to worry about the privilege problem. */


class kick extends ChatFormat implements BroadcastMsg
{
	private String someone = null;
	public kick(String line)
	{
		super(line);
	}

	public void sendMsg(PrintWriter out , KKMultiServerThread server)
	{
			String name = server.getUser();
			server.send_kick_client(out,msg);
	}

	public void execute(KKMultiServerThread server)
	{
		  server.broadcast(this);
	}
}
 